Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

121
Visualizações
Template strings [fullhash] vs Module variable

I am a bit puzzeled looking at the __webpack_hash__ module variable and [fullhash] template string because they are respectively defined as:

__webpack_hash__ (webpack-specific)

It provides access to the hash of the compilation.

and

[fullhash]  The full hash of compilation

in the documentation but when using one during build time to append to filename and the other inside of a module they produce different values.

Could anyone provide me some explaination as to why they are different values ?


A bit of context:

I'd like to use some service worker in one of my application. In order to have proper cache busting I'd like to append some kind of hash to the service worker filename. But in order to register a service worker I need to use its name. That's why i need to use [fullhash] for appending to the filename and __webpack_hash__ to register the service worker.

Regards

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda